<?php
/**
 * @package  Core
 *
 * A list of mime types. Our list is generally more complete and accurate than
 * the operating system MIME list.
 *
 * If there are any missing options, please create a ticket on our issue tracker,
 * http://kohanaphp.com/trac/newticket. Be sure to give the filename and
 * expected MIME type, as well as any additional information you can provide.
 */
$config = array ();
$config['allowViewTypes']=array(
    'jpg','gif','png','bmp','tiff','swf','xbm','wbmp','psd','jpc','jp2','jpx','jb2','swc','iff',
);
$config['isImgType']=array(
    'jpg','gif','png','bmp','tiff','xbm','wbmp','psd','jpc','jp2','jpx','jb2','iff',
);
$config['type2postfix'] = array(
  'application/atom+xml' => 'atom',
  'application/docbook+xml' => 'dbk',
  'application/envoy' => 'evy',
  'application/excel' => 'xlt',
  'application/internet-property-stream' => 'acx',
  'application/java-archive' => 'jar',
  'application/json' => 'json',
  'application/mac-binhex40' => 'hqx',
  'application/mac-compactpro' => 'cpt',
  'application/macbinary' => 'bin',
  'application/mp4' => 'mp4',
  'application/msoutlook' => 'msg',
  'application/msword' => 'doc',
  'application/octet-stream' => 'bin',
  'application/oda' => 'oda',
  'application/ogg' => 'ogg',
  'application/pdf' => 'pdf',
  'application/postscript' => 'ps',
  'application/powerpoint' => 'ppt',
  'application/rar' => 'rar',
  'application/rdf+xml' => 'rdf',
  'application/rss+xml' => 'rss',
  'application/smil' => 'smil',
  'application/vnd.mif' => 'mif',
  'application/vnd.ms-excel' => 'xlt',
  'application/vnd.ms-powerpoint' => 'pps',
  'application/vnd.ms-project' => 'mpp',
  'application/vnd.oasis.opendocument.chart' => 'odc',
  'application/vnd.oasis.opendocument.database' => 'odb',
  'application/vnd.oasis.opendocument.forumla' => 'odf',
  'application/vnd.oasis.opendocument.graphics' => 'odg',
  'application/vnd.oasis.opendocument.graphics-template' => 'otg',
  'application/vnd.oasis.opendocument.image' => 'odi',
  'application/vnd.oasis.opendocument.presentation' => 'odp',
  'application/vnd.oasis.opendocument.presentation-template' => 'otp',
  'application/vnd.oasis.opendocument.spreadsheet' => 'ods',
  'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots',
  'application/vnd.oasis.opendocument.template' => 'ott',
  'application/vnd.oasis.opendocument.text' => 'odt',
  'application/vnd.oasis.opendocument.text-master' => 'odm',
  'application/vnd.oasis.opendocument.web' => 'oth',
  'application/vnd.wordperfect' => 'wpd',
  'application/wbxml' => 'wbxml',
  'application/wmlc' => 'wmlc',
  'application/wordperfect5.1' => 'wp5',
  'application/x-7z-compressed' => '7z',
  'application/x-abiword' => 'abw',
  'application/x-apple-diskimage' => 'dmg',
  'application/x-bittorrent' => 'torrent',
  'application/x-cab' => 'cab',
  'application/x-cdf' => 'cda',
  'application/x-compress' => 'z',
  'application/x-debian-package' => 'deb',
  'application/x-director' => 'dxr',
  'application/x-download' => 'pdf',
  'application/x-dvi' => 'dvi',
  'application/x-flac' => 'flac',
  'application/x-gtar' => 'tgz',
  'application/x-gzip' => 'gz',
  'application/x-httpd-php' => 'php',
  'application/x-httpd-php-source' => 'phps',
  'application/x-internet-signup' => 'isp',
  'application/x-iphone' => 'iii',
  'application/x-iso9660-image' => 'iso',
  'application/x-java-applet' => 'java',
  'application/x-javascript' => 'js',
  'application/x-latex' => 'latex',
  'application/x-ms-wmd' => 'wmd',
  'application/x-ms-wmz' => 'wmz',
  'application/x-msaccess' => 'mdb',
  'application/x-msdos-program' => 'exe',
  'application/x-msg' => 'msg',
  'application/x-msi' => 'msi',
  'application/x-mspublisher' => 'pub',
  'application/x-photoshop' => 'psd',
  'application/x-redhat-package-manager' => 'rpm',
  'application/x-shockwave-flash' => 'swf',
  'application/x-stuffit' => 'sit',
  'application/x-tar' => 'tar',
  'application/x-tex' => 'tex',
  'application/x-texinfo' => 'textinfo',
  'application/x-troff' => 'tr',
  'application/x-troff-man' => 'man',
  'application/x-troff-ms' => 'ms',
  'application/x-wais-source' => 'src',
  'application/x-zip' => 'zip',
  'application/x-zip-compressed' => 'zip',
  'application/xhtml+xml' => 'html',
  'application/xml' => 'xml',
  'application/xml-dtd' => 'dtd',
  'application/xslt+xml' => 'xslt',
  'application/zip' => 'zip',
  'audio/midi' => 'mid',
  'audio/mp4' => 'mp4',
  'audio/mpeg' => 'mpga',
  'audio/ogg' => 'oga',
  'audio/x-aiff' => 'aif',
  'audio/x-matroska' => 'mka',
  'audio/x-ms-wax' => 'wax',
  'audio/x-ms-wma' => 'wma',
  'audio/x-pn-realaudio' => 'rm',
  'audio/x-pn-realaudio-plugin' => 'rpm',
  'audio/x-realaudio' => 'ram',
  'audio/x-wav' => 'wav',
  'image/bmp' => 'bmp',
  'image/gif' => 'gif',
  'image/jpeg' => 'jpg',
  'image/pjpeg' => 'jpg',
  'image/png' => 'png',
  'image/svg+xml' => 'svg',
  'image/tiff' => 'tif',
  'image/vnd.wap.wbmp' => 'wbmp',
  'image/x-icon' => 'ico',
  'image/x-photoshop' => 'psd',
  'image/x-png' => 'png',
  'image/x-portable-bitmap' => 'pbm',
  'image/x-portable-pixmap' => 'ppm',
  'image/x-rgb' => 'rgb',
  'image/x-xbitmap' => 'xbm',
  'image/x-xpixmap' => 'xpm',
  'image/x-xwindowdump' => 'xwd',
  'image/xcf' => 'xcf',
  'message/rfc822' => 'nws',
  'text/calendar' => 'ics',
  'text/comma-separated-values' => 'csv',
  'text/css' => 'css',
  'text/csv' => 'csv',
  'text/h323' => '323',
  'text/html' => 'html',
  'text/javascript' => 'js',
  'text/plain' => 'txt',
  'text/richtext' => 'rtx',
  'text/rtf' => 'rtf',
  'text/tab-separated-values' => 'tsv',
  'text/vnd.wap.wml' => 'wml',
  'text/x-c++hdr' => 'hpp',
  'text/x-c++src' => 'cpp',
  'text/x-chdr' => 'h',
  'text/x-comma-separated-values' => 'csv',
  'text/x-csh' => 'csh',
  'text/x-csrc' => 'c',
  'text/x-diff' => 'patch',
  'text/x-gettext-translation' => 'po',
  'text/x-haskell' => 'hs',
  'text/x-log' => 'log',
  'text/x-pascal' => 'pas',
  'text/x-perl' => 'pm',
  'text/x-python' => 'py',
  'text/x-sh' => 'sh',
  'text/x-tcl' => 'tcl',
  'text/xml' => 'xml',
  'video/avi' => 'avi',
  'video/divx' => 'divx',
  'video/flc' => 'flc',
  'video/fli' => 'fli',
  'video/mp4' => 'mpg4',
  'video/mp4v-es' => 'm4p',
  'video/mpeg' => 'mpg',
  'video/msvideo' => 'avi',
  'video/ogg' => 'ogv',
  'video/quicktime' => 'mov',
  'video/vnd.rn-realvideo' => 'rv',
  'video/x-flv' => 'flv',
  'video/x-matroska' => 'mpv',
  'video/x-ms-asf' => 'asf',
  'video/x-ms-wm' => 'wm',
  'video/x-ms-wmv' => 'wmv',
  'video/x-ms-wmx' => 'wmx',
  'video/x-ms-wvx' => 'wvx',
  'video/x-msvideo' => 'avi',
  'video/x-sgi-movie' => 'movie',
  'video/x-xvid' => 'xvid',
  'x-world/x-vrml' => 'xof'
);
$config['postfix2type'] = array(
    'ez'         => 'application/andrew-inset',    
    'hqx'        => 'application/mac-binhex40',    
    'cpt'        => 'application/mac-compactpro',    
    'doc'        => 'application/msword',    
    'bin'        => 'application/octet-stream',    
    'dms'        => 'application/octet-stream',    
    'lha'        => 'application/octet-stream',    
    'lzh'        => 'application/octet-stream',    
    'exe'        => 'application/octet-stream',    
    'class'      => 'application/octet-stream',    
    'so'         => 'application/octet-stream',    
    'dll'        => 'application/octet-stream',    
    'oda'        => 'application/oda',    
    'pdf'        => 'application/pdf',    
    'ai'         => 'application/postscrīpt',    
    'eps'        => 'application/postscrīpt',    
    'ps'         => 'application/postscrīpt',    
    'smi'        => 'application/smil',    
    'smil'       => 'application/smil',    
    'mif'        => 'application/vnd.mif',    
    'xls'        => 'application/vnd.ms-excel',    
    'ppt'        => 'application/vnd.ms-powerpoint',    
    'wbxml'      => 'application/vnd.wap.wbxml',    
    'wmlc'       => 'application/vnd.wap.wmlc',    
    'wmlsc'      => 'application/vnd.wap.wmlscrīptc',    
    'bcpio'      => 'application/x-bcpio',    
    'vcd'        => 'application/x-cdlink',    
    'pgn'        => 'application/x-chess-pgn',    
    'cpio'       => 'application/x-cpio',    
    'csh'        => 'application/x-csh',    
    'dcr'        => 'application/x-director',    
    'dir'        => 'application/x-director',    
    'dxr'        => 'application/x-director',    
    'dvi'        => 'application/x-dvi',    
    'spl'        => 'application/x-futuresplash',    
    'gtar'       => 'application/x-gtar',    
    'hdf'        => 'application/x-hdf',    
    'skp'        => 'application/x-koan',    
    'skd'        => 'application/x-koan',    
    'skt'        => 'application/x-koan',    
    'skm'        => 'application/x-koan',    
    'latex'      => 'application/x-latex',    
    'nc'         => 'application/x-netcdf',    
    'cdf'        => 'application/x-netcdf',    
    'sh'         => 'application/x-sh',    
    'shar'       => 'application/x-shar',    
    'swf'        => 'application/x-shockwave-flash',    
    'sit'        => 'application/x-stuffit',    
    'sv4cpio'    => 'application/x-sv4cpio',    
    'sv4crc'     => 'application/x-sv4crc',    
    'tar'        => 'application/x-tar',    
    'tcl'        => 'application/x-tcl',    
    'tex'        => 'application/x-tex',    
    'texinfo'    => 'application/x-texinfo',    
    'texi'       => 'application/x-texinfo',    
    't'          => 'application/x-troff',    
    'tr'         => 'application/x-troff',    
    'roff'       => 'application/x-troff',    
    'man'        => 'application/x-troff-man',    
    'me'         => 'application/x-troff-me',    
    'ms'         => 'application/x-troff-ms',    
    'ustar'      => 'application/x-ustar',    
    'src'        => 'application/x-wais-source',    
    'xhtml'      => 'application/xhtml+xml',    
    'xht'        => 'application/xhtml+xml',    
    'zip'        => 'application/zip',    
    'au'         => 'audio/basic',    
    'snd'        => 'audio/basic',    
    'mid'        => 'audio/midi',    
    'midi'       => 'audio/midi',    
    'kar'        => 'audio/midi',    
    'mpga'       => 'audio/mpeg',    
    'mp2'        => 'audio/mpeg',    
    'mp3'        => 'audio/mpeg',    
    'aif'        => 'audio/x-aiff',    
    'aiff'       => 'audio/x-aiff',    
    'aifc'       => 'audio/x-aiff',    
    'm3u'        => 'audio/x-mpegurl',    
    'ram'        => 'audio/x-pn-realaudio',    
    'rm'         => 'audio/x-pn-realaudio',    
    'rpm'        => 'audio/x-pn-realaudio-plugin',    
    'ra'         => 'audio/x-realaudio',    
    'wav'        => 'audio/x-wav',    
    'pdb'        => 'chemical/x-pdb',    
    'xyz'        => 'chemical/x-xyz',    
    'bmp'        => 'image/bmp',    
    'gif'        => 'image/gif',    
    'ief'        => 'image/ief',    
    'jpeg'       => 'image/jpeg',    
    'jpg'        => 'image/jpeg',    
    'jpe'        => 'image/jpeg',    
    'png'        => 'image/png',    
    'tiff'       => 'image/tiff',    
    'tif'        => 'image/tiff',    
    'djvu'       => 'image/vnd.djvu',    
    'djv'        => 'image/vnd.djvu',    
    'wbmp'       => 'image/vnd.wap.wbmp',    
    'ras'        => 'image/x-cmu-raster',    
    'pnm'        => 'image/x-portable-anymap',    
    'pbm'        => 'image/x-portable-bitmap',    
    'pgm'        => 'image/x-portable-graymap',    
    'ppm'        => 'image/x-portable-pixmap',    
    'rgb'        => 'image/x-rgb',    
    'xbm'        => 'image/x-xbitmap',    
    'xpm'        => 'image/x-xpixmap',    
    'xwd'        => 'image/x-xwindowdump',    
    'igs'        => 'model/iges',    
    'iges'       => 'model/iges',    
    'msh'        => 'model/mesh',    
    'mesh'       => 'model/mesh',    
    'silo'       => 'model/mesh',    
    'wrl'        => 'model/vrml',    
    'vrml'       => 'model/vrml',    
    'css'        => 'text/css',    
    'html'       => 'text/html',    
    'htm'        => 'text/html',    
    'js'         => 'text/javascrīpt',    
    'asc'        => 'text/plain',    
    'txt'        => 'text/plain',    
    'rtx'        => 'text/richtext',    
    'rtf'        => 'text/rtf',    
    'sgml'       => 'text/sgml',    
    'sgm'        => 'text/sgml',    
    'tsv'        => 'text/tab-separated-values',    
    'wml'        => 'text/vnd.wap.wml',    
    'wmls'       => 'text/vnd.wap.wmlscrīpt',    
    'etx'        => 'text/x-setext',    
    'xsl'        => 'text/xml',    
    'xml'        => 'text/xml',    
    'mpeg'       => 'video/mpeg',    
    'mpg'        => 'video/mpeg',    
    'mpe'        => 'video/mpeg',    
    'qt'         => 'video/quicktime',    
    'mov'        => 'video/quicktime',    
    'mxu'        => 'video/vnd.mpegurl',    
    'avi'        => 'video/x-msvideo',    
    'movie'      => 'video/x-sgi-movie',    
    'ice'        => 'x-conference/x-cooltalk',    
);